import { axios as request  } from '@/utils/request'
import qs from 'qs'

export function getList({params}) {
  const id = params.id
  delete params.id
  return request({
    // url: 'api/company?' + qs.stringify(params, {indices: false, encode: false}),
    url: `api/award-setting/site/${id}`,
    method: 'get',
    params
  })
}

export function get({id}) {
  return request({
    url: `api/award-setting/userAwardBase/detail?id=${id}`,
    method: 'get'
  })
}

export function edit({data}) {
  return request({
    url: 'api/award-setting',
    method: 'put',
    data
  })
}